<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<TITLE>GSB web services</TITLE>
<META NAME="Generator" CONTENT="">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css">
<link type="text/css" href="css/smoothness/jquery-ui-1.8.5.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.5.custom.min.js"></script>
</head>
<body>
<div id="wrapper">
  <h1> GSB web services data import </h1>
  <div id="content">
    <fieldset>
    <legend>Upload Dead Man Data from .XLS / .XLSX</legend>
    <form id="uploadFrm" action="" method="POST" enctype="multipart/form-data">
      <div class="field">
        <label for="uploadFile">File name ::</label>
        <input type="file" id="uploadFile" name="uploadFile" class="ui-widget-content ui-corner-all" />
       <label> Start row :: </label> <input id="start" style="width:50px" type="text"> 
	   <label> End row :: </label> <input id="end" style="width:50px" type="text">
      </div>
	 <div class="field">
	 <input type="button" id="upload"  value="Import data.." >	  
	 </div>
 	
    </form>
    </fieldset>
    <fieldset>
    <legend>Upload Insurance Data from .XLS / .XLSX</legend>
    <form id="uploadFrm" action="" method="POST" enctype="multipart/form-data">
      <div class="field">
        <label for="uploadFile">File name ::</label>
        <input type="file" id="uploadFile" name="uploadFile" class="ui-widget-content ui-corner-all" />
       <label> Start row :: </label> <input id="start" style="width:50px" type="text"> 
	   <label> End row :: </label> <input id="end" style="width:50px" type="text">
      </div>
	 <div class="field">
	 	<input type="button" id="upload"  value="Import data.." >	  
	 </div>
    </form>
    </fieldset>
  </div>
</div>
<script type="text/javascript">
$(function() {
	$( "button, input:button, a" ).button();
	$("#upload").click(function(){
		$.post("upload",$("uploadFrm").serialize(),function(){
			console.log("success..");
		});
	});
 });
</script>
</body>
</html>
